<h2>Modifier mon profil</h2>

<?= form_open('admin/config/profile_update', 'class="stylized"') ?>
	<fieldset>
		<legend>Mes informations</legend>
		<table>
			<tr>
				<td>Prénom :</td>
				<td><?= form_input('firstname', $user->firstname) ?></td>
			</tr>
			<tr>
				<td>Nom :</td>
				<td><?= form_input('name', $user->name) ?></td>
			</tr>
			<tr>
				<td>E-mail :</td>
				<td><?= form_input('email', $user->email) ?></td>
			</tr>
		</table>
		<p><?= form_submit('user_password_submit', 'Valider') ?></p>
	</fieldset>
</form>
<?= form_open('admin/config/profile_change_password', 'class="stylized"') ?>
	<fieldset>
		<legend>Changer mon mot de passe</legend>
		<table>
			<tr>
				<td>Mot de passe actuel :</td>
				<td><?= form_password('current_password') ?></td>
			</tr>
			<tr>
				<td>Nouveau mot de passe :</td>
				<td><?= form_password('password') ?></td>
			</tr>
			<tr>
				<td>Confirmation du nouveau mot de passe :</td>
				<td><?= form_password('password_confirm') ?></td>
			</tr>
		</table>
		<p><?= form_submit('user_submit', 'Valider') ?></p>
	</fieldset>
</form>
<?= form_open('admin/config/profile_update_settings', 'class="stylized"') ?>
	<fieldset>
		<legend>Préférences</legend>
		<p>
			Thème de l'interface d'administration : 
			<?= form_dropdown('theme', $themes, $this->session->userdata('theme')) ?>
			<?= form_submit('user_settings_submit', 'Valider') ?>
		</p>
	</fieldset>
</form>
